package com.tjtt.tdm.system.service.impl;



import java.util.List;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.tjtt.tdm.base.PageResult;
import com.tjtt.tdm.exception.ServiceException;
import com.tjtt.tdm.system.bean.LogInfo;
import com.tjtt.tdm.system.bean.SysTips;
import com.tjtt.tdm.system.dao.ITipsDao;
import com.tjtt.tdm.system.dao.LogDao;
import com.tjtt.tdm.system.service.ITipsService;
import com.tjtt.tdm.system.service.LogService;

public class TipsServiceImpl implements ITipsService {
	private ITipsDao tipsDao;

	public ITipsDao getTipsDao() {
		return tipsDao;
	}

	public void setTipsDao(ITipsDao tipsDao) {
		this.tipsDao = tipsDao;
	}

	
	public PageResult queryTips(Map filterMap) {
		return tipsDao.queryTips(filterMap);
	}

	
	public void saveTip(SysTips tip) {
		tipsDao.saveTip(tip);
	}

	
	public void updateTip(SysTips tip) {
		tipsDao.updateTip(tip);
	}

	
	public void deleteTip(String ids) {
		tipsDao.deleteTip(ids);
	}

	
	public SysTips getOneTip(String id) {
		return tipsDao.getOneTip(id);
	}

	
	public List findBySQL(String sql) {
		try {
			return tipsDao.getBySQL(sql);
		} catch (Exception e) {
			return null;
		}
	}
	
}
